<template>
	<view>
		<view @click="go(item)" style="background: #fff;" v-for="(item,index) in list" :key="index"
			class="">

			<view v-if="!item.ad" class="u-padding-30 u-border-bottom">


				<view class="u-flex u-row-between">
					<view class="u-flex">

						<view>
							<u-image shape="circle" :src="item.headimg" width="100" height="100"></u-image>
						</view>
						<view class="u-margin-left-20">
							<view class="u-flex">
								<view class="u-type-info">
									{{item.contacts}}
								</view>
								<view
									style="padding: 7rpx 14rpx;font-size: 22rpx; border-radius: 20rpx;background: #7bc5fd;color: #fff;"
									class="u-margin-left-20">
									已实名
								</view>
							</view>
							<view style="width: 450rpx;" class="u-margin-top-10 u-font-weight  u-line-1"  >{{item.title}}</view>
						</view>

					</view>
					<view class="u-font-weight u-font-30" style="color: #3C97FF;">
						置顶
					</view>

				</view>

				<view>
					<view style="margin-top: 10rpx;">
						<u-icon name="phone-fill" color="#3C97FF "></u-icon>
						<text class="u-type-info u-margin-left-20">{{item.phone}}</text>
					</view>
					<view style="margin-top: 10rpx;">
						<u-icon name="map-fill" color="#3C97FF "></u-icon>
						<text class="u-type-info u-margin-left-20">{{item.province}}{{item.city}}</text>
					</view>
					<view style="margin-top: 10rpx;">
						<u-icon name="file-text-fill" color="#3C97FF "></u-icon>
						<text class="u-type-info u-margin-left-20">{{item.workName}}</text>
					</view>
				</view>

				<view class="u-margin-top-20" style="color: #7e7e7e;">{{item.content}}</view>
			</view>
			
			<view v-else>
				<u-image :src="item.cover" height="300"></u-image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "manList",
		props: {
			list: Array,
			default: () => []
		},
		data() {
			return {

			}
		},
		methods: {
			go(e) {
				uni.navigateTo({
					url: '/pages/findWork/manDetail?id=' + e.id
				})
			}
		},
	}
</script>

<style>
</style>
